import request from '@/utils/request'
import { loginUrl, whyi, logout1 } from '@/routerConfig'
export function login(data) {
  return request({
    url: loginUrl,
    method: 'post',
    data
  })
}

export function getInfo(token) {
  return request({
    url: whyi,
    method: 'get',
    params: { token }
  })
}

export function logout() {
  return request({
    url: logout1,
    method: 'post'
  })
}
